<template>
  <div class="VueToNuxtLogo">
    <div
      class="left col-xs-12 col-md-5">
      <div class="left-text">
        <img
          v-show="show"
          :class="fadeIn"
          src="~/static/img/web_bg_circle.png">
        <h1
          v-show="showa"
          :class="fadeInsa">自买省钱，买就赚</h1>
        <h4
          v-show="showb"
          :class="fadeInsb">多拿点商城不仅能省，还能赚</h4>
      </div>
    </div>
    <div class="right col-xs-12 col-md-7">
      <div class="circles">
        <div>
          <div>
            <div>
              <div>
                <div />
              </div>
            </div>
          </div>
        </div>
      </div>
      <img
        :class="fadeIns"
        src="~/static/img/black-mockup.png">
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      fadeIns: '',
      fadeInsa: '',
      fadeInsb: '',
      fadeIn: '',
      show: false,
      showa: false,
      showb: false
    }
  },
  mounted() {
    this.fadeIns = 'animated slow fadeInDownBig'
    setTimeout(() => {
      this.show = true
      this.fadeIn = 'animated slow fadeInDown'
    }, 1200)
    setTimeout(() => {
      this.showa = true
      this.fadeInsa = 'animated slow fadeInDown'
    }, 2000)
    setTimeout(() => {
      this.showb = true
      this.fadeInsb = 'animated slow fadeInDown'
    }, 2700)
  }
}
</script>

<style lang="scss" scoped>
@media screen and (max-width: 1022px) {
  .VueToNuxtLogo {
    background-color: #ffffff;
    display: inherit !important;
    .left {
      margin: 13rem 12rem 0;
      img {
        width: 5rem;
        margin-bottom: 1rem;
      }
      h1 {
        width: 23.75rem;
        height: 4rem;
        font-size: 2.83rem;
        font-family: STYuanti-SC-Bold;
        font-weight: bold;
        color: black;
        line-height: 4rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
      }
      h4 {
        color: #868686;
        font-weight: 400 !important;
      }
    }
    .right {
      text-align: center;
      img {
        width: 45rem;
      }
    }
  }
  .circles {
    position: absolute;
    right: 0 !important;
    left: 0 !important;
    margin: auto !important;
    width: 35rem;
    height: 35rem;
    border: 2px solid rgba(248, 231, 28, 0.18);
    border-radius: 50%;
    top: 35%;
    div {
      width: 32rem;
      height: 32rem;
      border: 2px solid rgba(248, 231, 28, 0.22);
      left: 0;
      right: 0;
      margin: 1.5rem auto;
      border-radius: 50%;
      div {
        width: 29rem;
        height: 29rem;
        border: 2px solid rgba(248, 231, 28, 0.43);
        left: 0;
        right: 0;
        margin: 1.5rem auto;
        border-radius: 50%;
        div {
          width: 26rem;
          height: 26rem;
          border: 2px solid rgba(248, 231, 28, 0.53);
          left: 0;
          right: 0;
          margin: 1.5rem auto;
          border-radius: 50%;
          div {
            width: 23rem;
            height: 23rem;
            border: 2px solid rgba(248, 231, 28, 0.88);
            left: 0;
            right: 0;
            margin: 1.5rem auto;
            border-radius: 50%;
            div {
              width: 20rem;
              height: 20rem;
              border: 2px solid rgb(248, 231, 28);
              left: 0;
              right: 0;
              margin: 1.5rem auto;
              border-radius: 50%;
            }
          }
        }
      }
    }
  }
}
@media screen and (min-width: 1024px) {
  .VueToNuxtLogo {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .left {
      .left-text {
        float: right;
        width: 25rem;
        height: 10rem;
      }
      img {
        width: 5rem;
        margin-bottom: 1rem;
      }
      h1 {
        width: 23.75rem;
        height: 4rem;
        font-size: 2.83rem;
        font-family: STYuanti-SC-Bold;
        font-weight: bold;
        color: black;
        line-height: 4rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
      }
      h4 {
        color: #868686;
      }
    }
    .right {
      text-align: center;
      img {
        width: 42rem;
        margin-top: 8rem;
      }
    }
  }
  .circles {
    position: absolute;
    left: 16rem;
    width: 35rem;
    height: 35rem;
    border: 2px solid rgba(248, 231, 28, 0.3);
    border-radius: 50%;
    margin-top: 20%;
    div {
      width: 32rem;
      height: 32rem;
      border: 2px solid rgba(248, 231, 28, 0.5);
      left: 0;
      right: 0;
      margin: 1.5rem auto;
      border-radius: 50%;
      div {
        width: 29rem;
        height: 29rem;
        border: 2px solid rgba(248, 231, 28, 0.7);
        left: 0;
        right: 0;
        margin: 1.5rem auto;
        border-radius: 50%;
        div {
          width: 26rem;
          height: 26rem;
          border: 2px solid rgba(248, 231, 28, 0.9);
          left: 0;
          right: 0;
          margin: 1.5rem auto;
          border-radius: 50%;
          div {
            width: 23rem;
            height: 23rem;
            border: 2px solid rgb(248, 231, 28);
            left: 0;
            right: 0;
            margin: 1.5rem auto;
            border-radius: 50%;
            div {
              width: 20rem;
              height: 20rem;
              border: 2px solid rgb(248, 231, 28);
              left: 0;
              right: 0;
              margin: 1.5rem auto;
              border-radius: 50%;
            }
          }
        }
      }
    }
  }
}
</style>
